<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>

        // var strArr = "45，56，78，90"
        // var arr = [45, 78, 90, 77, 56, 100];
        // arr.reverse()

        // arr.sort(function (a, b) {
        //     return a - b
        // })
        // var c = 0
        // var arr1 = []
        // for (var i = 0; i < arr.length; i++) {
        //     if (arr[i] < 60) {
        //         arr1.push(arr[i])
        //     }
        // }
        

        var arr1=["跳舞","唱歌","小品","脱口秀","唱歌","跳舞"]
        var arr2=[]
        for(var i=0;i<arr1.length;i++)
        {
            if(arr2.indexOf(arr1[i]) ==-1)
            {
                arr2.push(arr1[i])
            }
        }
     console.log(arr2);
     document.write(arr2)
     
    </script>
</body>

</html>